<?php
// ------------------------
// SETTING
//
// You can edit below
// Ban co the sua doi nhung dong sau.
// ------------------------

// ypCore Version
define('YPCORE_VERSION', '2.0.0');

// Use db ?
define('YPCORE_USE_DB', TRUE);

// Cache
define('YPCORE_IS_CACHE', TRUE);

// Firewall
define('ACTIVE_FIREWALL', TRUE);

// Active https method if it avaible
define('ACTIVE_HTTPS', TRUE);

// Use cdn to host static file
define('USE_CDN', TRUE);

// Domain to host cdn
define('DOMAIN_CDN', 'http://cdn.demo.com');

// ypCore Desctiption
define('YPCORE_DESCRIPTION', 'ypCore blab blab');

// ypCore root dir, not edit
define ('YPCORE_ROOT', str_replace("\\", "/", pathinfo($_this, PATHINFO_DIRNAME)));

// ypCore library directoy
define ('YPCORE_DIR', 'ypCore');

// Apps folder
define ('APP_DIR', 'apps');

// Admin folder
define ('ADMIN_DIR', APP_DIR . '/admin');

// View (Template) folder, not edit
define ('APP_VIEWS_DIR', APP_DIR . '/view');

// Controller folder, not edit
define ('APP_CONTROLLER_DIR', APP_DIR . '/controller');

// Cache folder, not edit
define ('APP_CACHE_DIR', APP_DIR . '/cache');

// Temp folder, not edit
define ('APP_TMP_DIR', APP_DIR . '/tmp');

// Logs folder, not edit
define ('APP_LOG_DIR', APP_DIR . '/logs');

// Backup folder, may edit
define ('APP_BACKUP_DIR', APP_DIR . '/backup');

// Download folder, may edit
define ('APP_DOWNLOAD_DIR', APP_DIR . '/download');

// Class library folder, not edit
define ('CORE_CLASS_DIR', YPCORE_DIR . '/class');

// Apps view (template) folder, not edit
define ('APPS_TEMPLATE_DIR', YPCORE_ROOT . '/' . APP_DIR . '/view/');

// Admin view (template) folder, not edit
define ('ADMIN_TEMPLATE_DIR', YPCORE_ROOT . '/' . ADMIN_DIR . '/view/');

// Static javascript, css, images folder (domain).
// Neu muon luu static file sang subdomain, su dung dong thu 2
define ('YPCORE_STATIC_DIR', APP_DIR . '/static');
//define ('YPCORE_STATIC_DIR', 'http://static.go.use.vn');

// Cookie prefix, not edit
define ('COOKIE_PREFIX', '7ece924f090ce5');

// Url rewrite 
define ('REWRITE_URL_END_TYPE', 'html');

// Config file, recomment edit this line
define ('APP_CONFIG_FILE', APP_DIR . '/config.php');

// -----------------------
// SYSTEM EDIT
//
// Not change this line
// Khong sua nhung dong sau.
// -----------------------